# 使用__(双下划线)定义的是私有变量，外部无法访问
class Student(object):
    def __init__(self, name, score):
        self.name = name
        self.__score = score

    def print_score(self):
        self.__run()
        print('%s: %s' % (self.name, self.__score))
        
        
    def __run(self):
        print('student is runing')

s1 = Student('张三',80)
s1.print_score()
print(s1.name)
# 报错
# print(s1.__score)
# s1.__run()